package com.noreply.demo.service.impl;

import com.noreply.demo.service.JvmTestService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author noreply
 * @description
 * @datetime 2021/8/23 9:40
 */
@Service
public class JvmTestServiceImpl implements JvmTestService {
    private static Map<String, Object> map = new HashMap<String, Object>();
    @Override
    public void generateBigBytes(int mb) {
        Byte[] bytes = new Byte[mb * 1024 * 1024];
        map.put(String.valueOf(System.currentTimeMillis()), bytes);
    }
}
